package chen.web.config.spring.blog;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import chen.web.blog.CachedCategoryManager;
import chen.web.blog.CategoryManager;

@Configuration
public class CategoryManagerConfig {

	@Bean(name="blog_categhoryManager")
	public CategoryManager categoryManager(){
		CategoryManager cm = new CachedCategoryManager(30);
		return cm;
	}
}
